package spring.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.bean.service.UserService;


public class ContextTest {
    private static ApplicationContext applicationContext = null;
    public static void main(String[] args) {
        applicationContext = new ClassPathXmlApplicationContext("classpath:spring/spring-application.xml");
        UserService bean = applicationContext.getBean(UserService.class);
        System.out.println(bean.getClass());
    }
}
